<%@ page language="java" import="java.util.*,com.ruohi.util.common.*" pageEncoding="UTF-8"%>
<%@page import="com.ruohi.gift.order.OrderStatus"%><%
	String tableName = "gift_order_operate_history";
	String tablePrefix = Env.getInstance().getProperty("table_prefix");
	String fileds = "id,add_date,add_ip,order_num,add_user,order_status";
	String order_num = CommonString.getFormatPara(request.getParameter("order_num"));
	String channelUUID = CommonString.getFormatPara(request.getParameter("channel_uuid"));
	String whereStr = " and order_num='"+order_num+"'";
	String orderByStr = " add_date desc ";
	
	Map orderStatusMap=new TreeMap();
	orderStatusMap.put("","-请选择-");
	orderStatusMap.put(CommonString.getFormatPara(OrderStatus.CANCELED),OrderStatus.showStatus(OrderStatus.CANCELED));
	orderStatusMap.put(CommonString.getFormatPara(OrderStatus.WAIT_PAY),OrderStatus.showStatus(OrderStatus.WAIT_PAY));
	orderStatusMap.put(CommonString.getFormatPara(OrderStatus.PAYED),OrderStatus.showStatus(OrderStatus.PAYED));
	orderStatusMap.put(CommonString.getFormatPara(OrderStatus.ASSORTING),OrderStatus.showStatus(OrderStatus.ASSORTING));
	orderStatusMap.put(CommonString.getFormatPara(OrderStatus.SHIPPED),OrderStatus.showStatus(OrderStatus.SHIPPED));
	orderStatusMap.put(CommonString.getFormatPara(OrderStatus.FINISHED),OrderStatus.showStatus(OrderStatus.FINISHED));
%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title><%=Env.getInstance().getProperty("project_name") %></title>
	<link href="/plugin/ui/ligerUI/ligerUI/skins/Aqua/css/ligerui-all.css" rel="stylesheet" type="text/css" />
	<link href="/plugin/ui/ligerUI/ligerUI/skins/Gray/css/all.css" rel="stylesheet" type="text/css" />
	<link href="/plugin/ui/ligerUI/ligerUI/skins/ligerui-icons.css" rel="stylesheet" type="text/css" />
	<link href="/backend/style/style.css" rel="stylesheet" type="text/css" />
	<script src="/plugin/jquery/jquery.min.js" type="text/javascript"></script>
  </head>
  <body>
	<div class="l-loading" style="display: block" id="pageloading"></div> 
	<div id="maingrid" style="margin: 0; padding: 0"></div>
	<div style="display: none;"></div>
  </body>
</html>
<script src="/plugin/ui/ligerUI/ligerUI/js/ligerui.min.js" type="text/javascript"></script>
<script src="/plugin/date/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
<script src="/backend/scripts/common.js" prefix="<%=tablePrefix %>" type="text/javascript"></script>
<script type="text/javascript">
	var grid;
	var windowWidth = 800;
	var windowHeight = 420;
	var channelUUID = '<%=channelUUID %>';
	var tableName = "<%=tableName %>";
	var fields = "<%=fileds %>";
	var whereStr = "<%=whereStr %>";
	var orderBy = "<%=orderByStr %>";
	var columnsArr = [];
	var url = "";
	var conditionStr = "";
	var params = [];
	jQuery(function() {
		params.push({'name':'enumNo','value':'106013'});
		grid = new Dev21sunGrid({
			checkbox : false,
			selectRowButtonOnly : true,
			rownumbers : true,
			enabledEdit: false,
			clickToEdit:false,
			usePager: false,
			toolbar : false
		});
		jQuery("#pageloading").hide();
	});
	var is_showData = [{ is_show : 1 , text: '是' }, { is_show : 0 , text: '否'}];
	//列数组
	columnsArr =  [ 
		{ display : '订单号', name : 'order_num', align : 'center' , type : 'string' , width : 150 } ,
		{ display : '操作人', name : 'add_user', align : 'center', width : 120, type:'string' },
		{ display:'所做操作', name:'order_status', align:'center', width:200, type:'string', render:function(row){
			var tips="";
			$.ajax({
				async:false,
				type:"post",
				url:"/backend/action/ajax_r.jsp",
				data:{flag:"gift_show_order_tips",enumNo:"106013",order_num:row.order_num,mem_no:row.add_user,order_status:row.order_status},
				success:function(result){
					tips=$.trim(result);
				}
			});
			return tips;
		} },
		{ display : '操作时间', name : 'add_date', align : 'center' , type : 'string', width : 150, render:function(row){
			return row.add_date.substring(0,row.add_date.length-2);
		} } ,
		{ display : '操作IP', name : 'add_ip', align : 'center', width : 120, type:'string' }
	];
</script>